<?php
use yii\bootstrap\ActiveForm;
use frontend\widgets\Alert;
use common\models\Student;
?>
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-sm-4">
        <h2><?php echo $this->title?></h2>
        <ol class="breadcrumb">
            <li>
                <a href="<?php echo yii::$app->urlManager->createUrl(['site/index'])?>"><strong>Trang chủ</strong></a>
            </li>
            <li class="active">
                <strong><?php echo $this->title?></strong>
            </li>
        </ol>
    </div>
    
</div>
<div class="wrapper wrapper-content">
    <div class="row">
        <?php echo Alert::widget() ?>
        <?php $form = ActiveForm::begin([
                            'layout' => 'horizontal',
                            'fieldConfig' => [
                                'template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}",
                                'horizontalCssClasses' => [
                                    'label' => 'col-lg-3',
                                    //'offset' => 'col-sm-offset-4',
                                    'wrapper' => 'col-lg-9',
                                    'error' => '',
                                    'hint' => '',
                                ],
                            ],
                        ])
                    ?>
        <?php
        //$form->enableClientValidation = false;
        ?>
        <div class="col-lg-6">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>Thông tin công ty</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <?php echo $form->field($company, 'name')->textInput(); ?>
                    <?php echo $form->field($company, 'email')->textInput(); ?>
                    <?php echo $form->field($company, 'address')->textInput(); ?> 
                    <?php echo $form->field($company, 'phone')->textInput(); ?>
                    <div class="form-group">
                            <div class="col-lg-offset-3 col-lg-10">
                                <button class="btn btn-primary" type="submit">Save</button>
                            </div>
                        </div>    
                </div>
            </div>
        </div>
        
        <div class="col-lg-6">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5> Thông tin quản lý</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <?php echo $form->field($user, 'name')->textInput(); ?>
                    <?php echo $form->field($user, 'email')->textInput(); ?>
                    <?php echo $form->field($user, 'address')->textInput(); ?> 
                    <?php echo $form->field($user, 'phone')->textInput(); ?>
                    <?php echo $form->field($user, 'password_input')->passwordInput(); ?> 
                    <?php echo $form->field($user, 'password_repeat')->passwordInput(); ?>
                </div>
            </div>
        </div>

        <?php ActiveForm::end(); ?>
        
        
        
        
        
    </div>
</div>
